package cn.wbu.zyh.service.impl;

import cn.wbu.zyh.constant.StatusConstant;
import cn.wbu.zyh.mapper.UserMapper;
import cn.wbu.zyh.service.UserService;
import cn.wbu.zyh.vo.UserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
@Slf4j
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public UserVO getByUsername(String username) {
        UserVO userVO = userMapper.getByUsername(username);
        return userVO;
    }
}
